/* 
 * File:   Cell.cpp
 * Author: yuu
 * 
 * Created on September 6, 2011, 6:24 PM
 */

#include "Cell.h"

Cell::Cell() {
    this->x = 0;
    this->y = 0;
    neighb = new list<Cell*>();
}

Cell::Cell(const Cell& orig) {
    this->x = orig.x;
    this->y = orig.y;
    neighb = orig.neighb;
}

Cell::Cell(int x, int y) {
    this->x = x;
    this->y = y;
    neighb = new list<Cell*>();
}

Cell::~Cell() {
}

Cell::AddNeighb(Cell& c) {
    this->neighb.push_back(c);
}

Cell::RmNeighb(Cell& c) {
    this->neighb.remove(c);
}